﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace OnlineMovieTicket.Model
{
    //[MetadataType(typeof(Movies_Validation))]
    [Serializable]
    public class Movies
    {
        [DisplayName("Movie ID")]
        public Int32 MovieCode { get; set; }
        
        [Required]
        [DisplayName("Movie Name")]
        public string MovieName { get; set; }

        [Required]
        [DisplayName("Languages")]
        public string Language { get; set; }

        [Required]
        public Int32 Duration { get; set; }

        [Required]
        [DisplayName("Release Date")]
        public DateTime ReleaseDate { get; set; }

        [Required]
        [DisplayName("Genre")]
        public string Genre { get; set; }

        [Required]
        [DisplayName("Subtitle")]
        public string Subtitle { get; set; }

        [Required]
        [DisplayName("Brief Story")]
        public string Synopsis { get; set; }

        [Required]
        [DisplayName("Trailer")]
        public string Trailer { get; set; }

        [Required]
        [DisplayName("Website")]
        public string Website { get; set; }

        [Required]
        [DisplayName("Movie Cast")]
        public string MovieCast { get; set; }

        
        [DisplayName("Movie Director")]
        public string MovieDirector { get; set; }

        
        [DisplayName("Distributor")]
        public string Distributor { get; set; }

        [Required]
        [DisplayName("Status")]
        public string Status { get; set; }
                
        [DisplayName("Image")]        
        public byte[] Image { get; set; }

    }

    
    //public class Movies_Validation
    //{
    //    [Required(ErrorMessage = "Movie ID Required")]
    //    [StringLength(50, ErrorMessage = "Must be under 10 characters")]
    //    [DisplayName("Movie ID")]
    //    public Int32 MovieCode { get; set; }

    //    //[Required(ErrorMessage = "Movie Name Required")]
    //    //[StringLength(50, ErrorMessage = "Must be under 120 characters")]
    //    [DisplayName("Description")]
    //    public string MovieName { get; set; }

    //    //[Required(ErrorMessage = "Language Required")]
    //    //[StringLength(50, ErrorMessage = "Must be under 80 characters")]
    //    [DisplayName("Languages")]
    //    public string Language { get; set; }

    //    //[Required(ErrorMessage = "Duration Required")]
    //    //[StringLength(50, ErrorMessage = "Must be under 120 characters")]
    //    //[Range(0,400,ErrorMessage="Duration must be between 0 and 400")]
    //    public Int32 Duration { get; set; }

    //    [DisplayName("Release Date")]
    //    public DateTime ReleaseDate { get; set; }

    //    [DisplayName("Genre")]
    //    public string Genre { get; set; }

    //    [DisplayName("Subtitle")]
    //    public string Subtitle { get; set; }

    //    [DisplayName("Brief Story")]
    //    public string Synopsis { get; set; }

    //    [DisplayName("Trailer")]
    //    public string Trailer { get; set; }

    //    [DisplayName("Website")]
    //    public string Website { get; set; }

    //    [DisplayName("Movie Cast")]
    //    public string MovieCast { get; set; }

    //    [DisplayName("Movie Director")]
    //    public string MovieDirector { get; set; }

    //    [DisplayName("Distributor")]
    //    public string Distributor { get; set; }

    //    [DisplayName("Status")]
    //    public string Status { get; set; }

    //    [DisplayName("Image Name")]
    //    public string ImageName { get; set; }
    //}
}
